package freaksServer;


import java.net.*;
import java.io.*;

public class FreaksServer {
	public synchronized static void main(String[] args) throws Exception {
		ServerSocket serverSocket = null;
        boolean listening = true;

        try {
            serverSocket = new ServerSocket(4445);
        } catch (IOException e) {
            System.err.println("Could not listen on port: 4445.");
            System.exit(-1);
        }

        while (listening)
        	new ServerThread(serverSocket.accept()).start();

        serverSocket.close();
	}
}
